home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / nfsmount / nfsStatusMap.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-21  |  3.5 KB  |  105 lines

  1. /*
  2.  * nfsStatusMap.c --
  3.  * 
  4.  *    This defines a mapping from UNIX to Sprite error codes.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15. #ifndef lint
  16. static char rcsid[] = "$Header: /sprite/src/cmds/nfsmount/RCS/nfsStatusMap.c,v 1.4 90/05/21 14:29:14 mgbaker Exp $ SPRITE (Berkeley)";
  17. #endif not lint
  18.  
  19. #include "status.h"
  20. #include "errno.h"
  21.  
  22. ReturnStatus nfsStatusMap[] = {
  23.     SUCCESS,        /*             0     */
  24.     FS_NOT_OWNER,        /* UNIX_EPERM        1     */
  25.     FS_FILE_NOT_FOUND,    /* UNIX_ENOENT        2     */
  26.     PROC_INVALID_PID,    /* UNIX_ESRCH        3     */
  27.     GEN_ABORTED_BY_SIGNAL,    /* UNIX_EINTR        4     */
  28.     DEV_DMA_FAULT,        /* UNIX_EIO        5     */
  29.     FS_FILE_NOT_FOUND,    /* UNIX_ENXIO        6     */
  30.     FAILURE,        /* UNIX_E2BIG        7     */
  31.     PROC_BAD_AOUT_FORMAT,    /* UNIX_ENOEXEC        8     */
  32.     FS_INVALID_ARG,        /* UNIX_EBADF        9     */
  33.     PROC_NO_CHILDREN,    /* UNIX_ECHILD        10     */
  34.     FAILURE,        /* UNIX_EAGAIN        11     */
  35.     VM_NO_SEGMENTS,        /* UNIX_ENOMEM        12     */
  36.     FS_NO_ACCESS,        /* UNIX_EACCES        13     */
  37.     SYS_ARG_NOACCESS,    /* UNIX_EFAULT        14     */
  38.     FS_DEVICE_OP_INVALID,    /* UNIX_ENOTBLK        15     */
  39.     FAILURE,        /* UNIX_EBUSY        16     */
  40.     FS_FILE_EXISTS,        /* UNIX_EEXIST        17     */
  41.     FS_CROSS_DOMAIN_OPERATION, /* UNIX_EXDEV    18     */
  42.     FS_FILE_NOT_FOUND,    /* UNIX_ENODEV        19     */
  43.     FS_NOT_DIRECTORY,    /* UNIX_ENOTDIR        20     */
  44.     FS_IS_DIRECTORY,    /* UNIX_EISDIR        21     */
  45.     FS_INVALID_ARG,        /* UNIX_EINVAL        22     */
  46.     FAILURE,        /* UNIX_ENFILE        23     */
  47.     FAILURE,        /* UNIX_EMFILE        24     */
  48.     FAILURE,        /* UNIX_ENOTTY        25     */
  49.     FS_FILE_BUSY,        /* UNIX_ETXTBSY        26     */
  50.     FAILURE,        /* UNIX_EFBIG        27     */
  51.     FS_NO_DISK_SPACE,    /* UNIX_ENOSPC        28     */
  52.     FS_LOCAL_OP_INVALID,    /* UNIX_ESPIPE        29     */
  53.     FAILURE,        /* UNIX_EROFS        30     */
  54.     FS_NAME_LOOP,        /* UNIX_EMLINK        31     */
  55.     FS_BROKEN_PIPE,        /* UNIX_EPIPE        32     */
  56.     FAILURE,        /* UNIX_EDOM        33     */
  57.     FAILURE,        /* UNIX_ERANGE        34     */
  58.  
  59.     FS_WOULD_BLOCK,        /* UNIX_EWOULDBLOCK    35     */
  60.     FAILURE,        /* UNIX_EINPROGRESS    36     */
  61.     FAILURE,        /* UNIX_EALREADY    37     */
  62.  
  63.     FAILURE,        /* UNIX_ENOTSOCK    38     */
  64.     FAILURE,        /* UNIX_EDESTADDRREQ    39     */
  65.     FS_BUFFER_TOO_BIG,    /* UNIX_EMSGSIZE    40     */
  66.     FAILURE,        /* UNIX_EPROTOTYPE    41     */
  67.     FAILURE,        /* UNIX_ENOPROTOOPT    42     */
  68.     FAILURE,        /* UNIX_EPROTONOSUPPORT    43     */
  69.     FAILURE,        /* UNIX_ESOCKTNOSUPPORT    44     */
  70.     FAILURE,        /* UNIX_EOPNOTSUPP    45     */
  71.     FAILURE,        /* UNIX_EPFNOSUPPORT    46     */
  72.     FAILURE,        /* UNIX_EAFNOSUPPORT    47     */
  73.     FAILURE,        /* UNIX_EADDRINUSE    48     */
  74.     FAILURE,        /* UNIX_EADDRNOTAVAIL    49     */
  75.  
  76.     FAILURE,        /* UNIX_ENETDOWN    50     */
  77.     FAILURE,        /* UNIX_ENETUNREACH    51     */
  78.     FAILURE,        /* UNIX_ENETRESET    52     */
  79.     FAILURE,        /* UNIX_ECONNABORTED    53     */
  80.     FAILURE,        /* UNIX_ECONNRESET    54     */
  81.     FAILURE,        /* UNIX_ENOBUFS        55     */
  82.     FAILURE,        /* UNIX_EISCONN        56     */
  83.     FAILURE,        /* UNIX_ENOTCONN    57     */
  84.     FAILURE,        /* UNIX_ESHUTDOWN    58     */
  85.     FAILURE,        /* UNIX_ETOOMANYREFS    59     */
  86.     RPC_TIMEOUT,        /* UNIX_ETIMEDOUT    60     */
  87.     FAILURE,        /* UNIX_ECONNREFUSED    61     */
  88.  
  89.     FS_NAME_LOOP,        /* UNIX_ELOOP        62     */
  90.     FAILURE,        /* UNIX_ENAMETOOLONG    63     */
  91.  
  92.     FAILURE,        /* UNIX_EHOSTDOWN    64     */
  93.     FAILURE,        /* UNIX_EHOSTUNREACH    65     */
  94.     FAILURE,        /* UNIX_ENOTEMPTY    66     */
  95.  
  96.     FAILURE,        /* UNIX_EPROCLIM    67     */
  97.     FAILURE,        /* UNIX_EUSERS        68     */
  98.     FAILURE,        /* UNIX_EDQUOT        69     */
  99.  
  100.     FS_FILE_NOT_FOUND,    /* UNIX_ESTALE        70     */
  101.     EREMOTE,        /* UNIX_EREMOTE        71     */
  102.  
  103. };
  104.  
  105.